<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/10/30
  Time: 9:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1 align="center">修改商品</h1>


<form action="${pageContext.request.contextPath}/updateServlet">
    <%--传入pid，属性设置隐藏，不要忘记设置name--%>
    <input type="hidden" name="pid" value="${p.pid}">
    <table align="center">
        <tr>
            <td>商品名称：</td>
            <td><input type="text" name="pname" value="${p.pname}"></td>
        </tr>
        <tr>
            <td>商品市场价格:</td>
            <td><input type="text" name="market_price" value="${p["market_price"]}"></td>
        </tr>

        <tr>
            <td> 商品描述：</td>
            <td><textarea name="pdesc" id="" cols="30" rows="10">${p.pdesc}</textarea></td>
        </tr>
        <tr>
            <td> <input type="submit" value="提交"></td>
            <td><input type="reset" value="重置"></td>
        </tr>
    </table>
</body>
</html>
